package tankGame04.tank;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:22954
 * Date:2024-03-13
 * Time:16:49
 */
public class Boom {
    int x, y;
    int life = 9;
    boolean isLife = true;

    public Boom(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public void lifeDown() {
        if (life > 0) {
            life--;
        } else {
            isLife = false;
        }
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

    public boolean isLife() {
        return isLife;
    }

    public int getLife() {
        return life;
    }
}
